import request from '@/utils/request'

// 查询点位列表
export function listColdefinetable(query) {
  return request({
    url: '/iot/coldefinetable/list',
    method: 'get',
    params: query
  })
}

// 查询点位详细
export function getColdefinetable(id) {
  return request({
    url: '/iot/coldefinetable/' + id,
    method: 'get'
  })
}

// 新增点位
export function addColdefinetable(data) {
  return request({
    url: '/iot/coldefinetable',
    method: 'post',
    data: data
  })
}

// 修改点位
export function updateColdefinetable(data) {
  return request({
    url: '/iot/coldefinetable',
    method: 'put',
    data: data
  })
}

// 删除点位
export function delColdefinetable(id) {
  return request({
    url: '/iot/coldefinetable/' + id,
    method: 'delete'
  })
}

  
